package com.fc.library.fresco

import android.content.Context
import android.graphics.drawable.Drawable
import android.net.Uri
import android.widget.ImageView

/**
 * Created by fc on 2017/11/16.
 */

class LoaderData {

    var context: Context? = null
    var transform: Transform? = null
    var small: Uri? = null
    var placeResource = 0
    var placeDrawable: Drawable? = null
    var width = 0
    var height = 0
    var leftTopCorner = 0f
    var leftBottomCorner = 0f
    var rightTopCorner = 0f
    var rightBottomCorner = 0f
    var circleParams: CircleParams? = null

    var uri: Uri? = null

    var imageId = 0

    var isShowAnimation = true

    var callback: FinalCallback? = null

    var isWrapContent = false
    var scaleType: ImageView.ScaleType? = null

    constructor() {}

    constructor(data: LoaderData) {
        width = data.width
        height = data.height
        uri = data.uri
        context = data.context
        small = data.small
        transform = data.transform
        scaleType = data.scaleType
        placeResource = data.placeResource
        placeDrawable = data.placeDrawable
        isWrapContent = data.isWrapContent
        callback = data.callback
        leftTopCorner = data.leftTopCorner
        leftBottomCorner = data.leftBottomCorner
        rightTopCorner = data.rightTopCorner
        rightBottomCorner = data.rightBottomCorner
        imageId = data.imageId
        isShowAnimation = data.isShowAnimation
        circleParams = data.circleParams
    }


}
